package com.dt76.smallloanbackendservice.service.huxuan.impl;

import com.dt76.smallloanbackendservice.mapper.huxuan.VipMapper;
import com.dt76.smallloanbackendservice.pojo.huxuan.Vip;
import com.dt76.smallloanbackendservice.service.huxuan.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VipServiceImpl implements VipService {

    @Autowired
    private VipMapper vipMapper;

    @Override
    public List<Vip> qryAll() {
        System.out.println("Service进入查询会员！");
        return vipMapper.qryAll();
    }

    @Override
    public int updRankAll() {
        return vipMapper.updRankAll();
    }

    @Override
    public int updRank(Vip vip) {
        return vipMapper.updRank(vip);
    }

    @Override
    public void delVip(int id) {
         vipMapper.delVip(id);
    }

    @Override
    public void addVip(Vip vip) {
        vipMapper.addVip(vip);
    }

    @Override
    public void updInfo(Vip vip) {
        vipMapper.updInfo(vip);
    }
}
